Skip to content

fix(backend): clear pip-audit --strict on new cryptography/click advisories (CI #576) - #194

Draft
Sbussiso wants to merge 1 commit into
dependabot/uv/backend/websockets-17.0.1from
ci-fix/32071496012
Draft

fix(backend): clear pip-audit --strict on new cryptography/click advisories (CI #576)#194
Sbussiso wants to merge 1 commit into
dependabot/uv/backend/websockets-17.0.1from
ci-fix/32071496012

Conversation

@Sbussiso

Copy link
Copy Markdown
Contributor

CI fix for run #576 — pip-audit --strict failure

The "Test & Deploy" run #576 (32071496012) failed at the Dependency scan (pip-audit) step, blocking this Dependabot PR (websockets 16.1.1 → 17.0.1):

Found 4 known vulnerabilities in 2 packages
Name         Version ID              Fix Versions
click        8.3.1   PYSEC-2026-2132 8.3.3
cryptography 48.0.1  PYSEC-2026-3552 50.0.0
cryptography 48.0.1  PYSEC-2026-3553 49.0.0
cryptography 48.0.1  PYSEC-2026-3554 49.0.0

Root cause

New advisories landed in the PyPA Advisory DB (~2026-08) against two transitive dependencies that the project doesn't pin directly:

  • click 8.3.1 — pulled in via uvicorn
  • cryptography 48.0.1 — pulled in via clerk-backend-api / authlib

No code changed; the scan just started failing on unrelated PRs. This is the same failure that already hit run #570 (setup-uv branch → PR #191) and run #577 (resend branch), and will keep recurring on every Dependabot PR until the constraint floor is raised.

Fix

Raises the transitive constraint floor in backend/pyproject.toml ([tool.uv] constraint-dependencies) and regenerates uv.lock:

  • cryptography>=48.0.1cryptography>=50.0.0 (clears all 3 new advisories; 50.0.0 is the highest fix version)
  • new click>=8.3.3 constraint (PYSEC-2026-2132)

⚠️ Side effect — clerk-backend-api major bump

Forcing cryptography>=50.0.0 also advances clerk-backend-api 6.0.1 → 7.0.0 (a MAJOR bump). Clerk 6.x caps cryptography<49.0.0, so the resolver is forced to clerk 7.0.0 (which allows <51.0.0). This is documented in the constraint comment. The code only touches Clerk's stable auth surface (Clerk, authenticate_request, AuthenticateRequestOptions), and the full suite passes against clerk 7.0.0 — but this deserves a look before merge since it touches the auth layer.

This is the same major bump the dedicated clerk-7.0.0 Dependabot PR (#185) is making, so merging this supersedes that PR's lock change.

Verified locally (sandbox, against this branch)

  • uv run ruff checkAll checks passed!
  • uv run pip-audit --strictNo known vulnerabilities found
  • uv run pytest -q699 passed

Once merged into dependabot/uv/backend/websockets-17.0.1, the pip-audit gate on this PR will go green.

Related: PR #191 (same fix, setup-uv branch).

Hermes coder CI triage (automated)

…sories (CI #576)

The "Test and Deploy" run #576 (32071496012) failed at the "Dependency scan
(pip-audit)" step on the dependabot/uv/backend/websockets-17.0.1 branch:

  Found 4 known vulnerabilities in 2 packages
  Name         Version ID              Fix Versions
  click        8.3.1   PYSEC-2026-2132 8.3.3
  cryptography 48.0.1  PYSEC-2026-3552 50.0.0
  cryptography 48.0.1  PYSEC-2026-3553 49.0.0
  cryptography 48.0.1  PYSEC-2026-3554 49.0.0

New advisories landed in the PyPA Advisory DB (~2026-08) against two
transitive deps the project doesn't pin directly (click via uvicorn,
cryptography via clerk-backend-api / authlib). No code changed; the
scan just started failing on unrelated Dependabot PRs. This is the
same failure that already hit run #570 (setup-uv branch, PR #191) and
run #577 (resend branch), and will keep recurring on every Dependabot
PR until the constraint floor is raised.

Fix: raise the transitive constraint floor in backend/pyproject.toml
([tool.uv] constraint-dependencies) and regenerate uv.lock:
  - click        8.3.1  -> 8.4.2  (new click>=8.3.3 constraint, PYSEC-2026-2132)
  - cryptography 48.0.1 -> 50.0.0 (cryptography>=50.0.0, clears all 3 advisories)

Side effect: forcing cryptography>=50.0.0 also advances
clerk-backend-api 6.0.1 -> 7.0.0 (major) because clerk 6.x caps
cryptography<49.0.0, so the resolver is forced to clerk 7.0.0 which
allows <51.0.0. The code only touches Clerk's stable auth surface
(Clerk, authenticate_request, AuthenticateRequestOptions). This is the
same major bump that the dedicated clerk-7.0.0 Dependabot PR (#185) is
making, so merging this also supersedes that PR's lock change.

Verified locally (sandbox, against this branch):
  - uv run ruff check         -> All checks passed!
  - uv run pip-audit --strict -> No known vulnerabilities found
  - uv run pytest -q          -> 699 passed

Refs: actions/runs/32071496012 . Related: PR #191 (same fix, setup-uv branch).

— Hermes coder CI triage (automated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants